import Vue from 'vue'
import Router from 'vue-router'
import routes from './routes'

import guards from './router-guard'
import fix from './router-fix'

Vue.use(Router)

const router = new Router({
  routes
})

fix.process(Router)

guards.run(router)

export { routes }

export default router
